home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / NewsTicker.sit / NewsTicker / source code / InternetConfig / ICComponentSelectors.h < prev    next >
Text File  |  1997-02-17  |  2KB  |  87 lines

  1. /*
  2.     IMPORTANT NOTES ABOUT THE C CONVERSION
  3.     --------------------------------------
  4.     
  5.     o Pascal "var" parameters are converted from "var x : y" to "y *x".  This
  6.       means that when you see the parameter "y *x" you should be aware that
  7.         you *cannot pass in nil*.  In future this restriction may be eased,
  8.         especially for the attr parameter to ICGetPref.  Parameters where nil
  9.         is legal are declared using the explicit pointer type, ie "yPtr x".
  10.  
  11.     o Strings are *Pascal* strings.  This means that they must be word aligned.
  12.         MPW and Think C do this automatically.  The last time I check, Metrowerks
  13.         C does not.  If it still doesn't, then IMHO it's a bug in their compiler
  14.         and you should report it to them.
  15.  
  16.     o The canonical Internet Config interface is defined in Pascal.  These
  17.         headers have not been thoroughly tested.  If there is a conflict between
  18.         these headers and the Pascal interfaces, the Pascal should take precedence.
  19. */
  20.  
  21. /* ///////////////////////////////////////////////////////////////////////////////// */
  22.  
  23. #ifndef __ICCOMPONENTSELECTORS__
  24. #define __ICCOMPONENTSELECTORS__
  25.  
  26. #ifndef __TYPES__
  27. #include <Types.h>
  28. #endif
  29.  
  30. /* ///////////////////////////////////////////////////////////////////////////////// */
  31.  
  32. #if defined(powerc) || defined (__powerc)
  33. #pragma options align=mac68k
  34. #endif
  35.  
  36. enum {
  37. /* •••Start ICCSel.h••• */
  38.  
  39.   kICCStart = 0,
  40.   kICCStop = 1,
  41.   kICCFindConfigFile = 2,
  42.   kICCFindUserConfigFile = 14,
  43.   kICCGeneralFindConfigFile = 30,
  44.   kICCChooseConfig = 33,
  45.   kICCChooseNewConfig = 34,
  46.   kICCGetConfigName = 35,
  47.   kICCGetConfigReference = 31,
  48.   kICCSetConfigReference = 32,
  49.   kICCSpecifyConfigFile = 3,
  50.   kICCGetSeed = 4,
  51.   kICCGetPerm = 13,
  52.   kICCDefaultFileName = 11,
  53.   kICCBegin = 5,
  54.   kICCGetPref = 6,
  55.   kICCSetPref = 7,
  56.   kICCFindPrefHandle = 36,
  57.   kICCGetPrefHandle = 26,
  58.   kICCSetPrefHandle = 27,
  59.   kICCCountPref = 8,
  60.   kICCGetIndPref = 9,
  61.   kICCDeletePref = 12,
  62.   kICCEnd = 10,
  63.   kICCEditPreferences = 15,
  64.   kICCParseURL = 16,
  65.   kICCLaunchURL = 17,
  66.   kICCMapFilename = 24,
  67.   kICCMapTypeCreator = 25,
  68.   kICCMapEntriesFilename = 28,
  69.   kICCMapEntriesTypeCreator = 29,
  70.   kICCCountMapEntries = 18,
  71.   kICCGetIndMapEntry = 19,
  72.   kICCGetMapEntry = 20,
  73.   kICCSetMapEntry = 21,
  74.   kICCDeleteMapEntry = 22,
  75.   kICCAddMapEntry = 23,
  76.   kICC_first_select = kICCStart,
  77.   kICC_last_select = 36
  78.  
  79. /* •••End ICCSel.h••• */
  80. };
  81.  
  82. #if defined(powerc) || defined(__powerc)
  83. #pragma options align=reset
  84. #endif
  85.  
  86. #endif
  87.